/****************************************************************************
** Meta object code from reading C++ file 'window_QT.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.12.3)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../gVision/widget/canvas/window_QT.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'window_QT.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.12.3. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_DefaultViewPort_t {
    QByteArrayData data[20];
    char stringdata0[209];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_DefaultViewPort_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_DefaultViewPort_t qt_meta_stringdata_DefaultViewPort = {
    {
QT_MOC_LITERAL(0, 0, 15), // "DefaultViewPort"
QT_MOC_LITERAL(1, 16, 10), // "mousePress"
QT_MOC_LITERAL(2, 27, 0), // ""
QT_MOC_LITERAL(3, 28, 1), // "x"
QT_MOC_LITERAL(4, 30, 1), // "y"
QT_MOC_LITERAL(5, 32, 5), // "flags"
QT_MOC_LITERAL(6, 38, 2), // "id"
QT_MOC_LITERAL(7, 41, 16), // "mouseButtonPress"
QT_MOC_LITERAL(8, 58, 16), // "siftWindowOnLeft"
QT_MOC_LITERAL(9, 75, 17), // "siftWindowOnRight"
QT_MOC_LITERAL(10, 93, 14), // "siftWindowOnUp"
QT_MOC_LITERAL(11, 108, 16), // "siftWindowOnDown"
QT_MOC_LITERAL(12, 125, 9), // "resetZoom"
QT_MOC_LITERAL(13, 135, 9), // "imgRegion"
QT_MOC_LITERAL(14, 145, 6), // "ZoomIn"
QT_MOC_LITERAL(15, 152, 7), // "ZoomOut"
QT_MOC_LITERAL(16, 160, 8), // "saveView"
QT_MOC_LITERAL(17, 169, 18), // "setViewInteractive"
QT_MOC_LITERAL(18, 188, 4), // "flag"
QT_MOC_LITERAL(19, 193, 15) // "stopDisplayInfo"

    },
    "DefaultViewPort\0mousePress\0\0x\0y\0flags\0"
    "id\0mouseButtonPress\0siftWindowOnLeft\0"
    "siftWindowOnRight\0siftWindowOnUp\0"
    "siftWindowOnDown\0resetZoom\0imgRegion\0"
    "ZoomIn\0ZoomOut\0saveView\0setViewInteractive\0"
    "flag\0stopDisplayInfo"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_DefaultViewPort[] = {

 // content:
       8,       // revision
       0,       // classname
       0,    0, // classinfo
      13,   14, // methods
       0,    0, // properties
       0,    0, // enums/sets
       0,    0, // constructors
       0,       // flags
       2,       // signalCount

 // signals: name, argc, parameters, tag, flags
       1,    4,   79,    2, 0x06 /* Public */,
       7,    3,   88,    2, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
       8,    0,   95,    2, 0x0a /* Public */,
       9,    0,   96,    2, 0x0a /* Public */,
      10,    0,   97,    2, 0x0a /* Public */,
      11,    0,   98,    2, 0x0a /* Public */,
      12,    0,   99,    2, 0x0a /* Public */,
      13,    0,  100,    2, 0x0a /* Public */,
      14,    0,  101,    2, 0x0a /* Public */,
      15,    0,  102,    2, 0x0a /* Public */,
      16,    0,  103,    2, 0x0a /* Public */,
      17,    1,  104,    2, 0x0a /* Public */,
      19,    0,  107,    2, 0x08 /* Private */,

 // signals: parameters
    QMetaType::Void, QMetaType::Int, QMetaType::Int, QMetaType::Int, QMetaType::QString,    3,    4,    5,    6,
    QMetaType::Void, QMetaType::QPoint, QMetaType::Int, QMetaType::Int,    2,    2,    2,

 // slots: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::Bool,   18,
    QMetaType::Void,

       0        // eod
};

void DefaultViewPort::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<DefaultViewPort *>(_o);
        Q_UNUSED(_t)
        switch (_id) {
        case 0: _t->mousePress((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3])),(*reinterpret_cast< QString(*)>(_a[4]))); break;
        case 1: _t->mouseButtonPress((*reinterpret_cast< QPoint(*)>(_a[1])),(*reinterpret_cast< int(*)>(_a[2])),(*reinterpret_cast< int(*)>(_a[3]))); break;
        case 2: _t->siftWindowOnLeft(); break;
        case 3: _t->siftWindowOnRight(); break;
        case 4: _t->siftWindowOnUp(); break;
        case 5: _t->siftWindowOnDown(); break;
        case 6: _t->resetZoom(); break;
        case 7: _t->imgRegion(); break;
        case 8: _t->ZoomIn(); break;
        case 9: _t->ZoomOut(); break;
        case 10: _t->saveView(); break;
        case 11: _t->setViewInteractive((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 12: _t->stopDisplayInfo(); break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (DefaultViewPort::*)(int , int , int , QString );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DefaultViewPort::mousePress)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (DefaultViewPort::*)(QPoint , int , int );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&DefaultViewPort::mouseButtonPress)) {
                *result = 1;
                return;
            }
        }
    }
}

QT_INIT_METAOBJECT const QMetaObject DefaultViewPort::staticMetaObject = { {
    &QGraphicsView::staticMetaObject,
    qt_meta_stringdata_DefaultViewPort.data,
    qt_meta_data_DefaultViewPort,
    qt_static_metacall,
    nullptr,
    nullptr
} };


const QMetaObject *DefaultViewPort::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *DefaultViewPort::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_DefaultViewPort.stringdata0))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "ViewPort"))
        return static_cast< ViewPort*>(this);
    return QGraphicsView::qt_metacast(_clname);
}

int DefaultViewPort::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 13)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 13;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 13)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 13;
    }
    return _id;
}

// SIGNAL 0
void DefaultViewPort::mousePress(int _t1, int _t2, int _t3, QString _t4)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)), const_cast<void*>(reinterpret_cast<const void*>(&_t4)) };
    QMetaObject::activate(this, &staticMetaObject, 0, _a);
}

// SIGNAL 1
void DefaultViewPort::mouseButtonPress(QPoint _t1, int _t2, int _t3)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)), const_cast<void*>(reinterpret_cast<const void*>(&_t3)) };
    QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
